<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SiteList</title>
<link rel="stylesheet" type="text/css" href="/css/global.css" />
</head>
<body>

<form action="/siteRegist" method="post">
	<table border="0">
		<tr>
			<th>title</th>
			<td><input type="text" name="title" size="32"/></td>
		</tr>
		<tr>
			<th>url</th>
			<td><input type="text" name="url" size="32"/></td>
		</tr>
		<tr>
			<th>taskUrl</th>
			<td>
				<input type="text" name="taskUrl" size="32"/><br/>
				ex)/task/collectorTask
			</td>
		</tr>
	</table>
	<input type="submit"/>
</form>

<hr/>

<c:if test="${list != null}">
	<c:forEach var="site" items="${list}">
		title:${site.title}<br/>
		url:<a href="${site.url}" target="_blank">${site.url}</a><br/>
		taskUrl:<a href="${site.taskUrl}?key=${f:key(site.key)}" target="_blank">${site.taskUrl}</a><br/>
		<hr/>
	</c:forEach>
</c:if>

</body>
</html>
